<div id="pagination">
<?php 
    if (isset($this->previous)){
	    if(isset($this->first)){
			echo "<a href='".$this->url(array('page'=>$this->first))."'>&lt;&lt;</a>";
		}
         echo "<a href='".$this->url(array('page'=>$this->previous))."'>&lt;</a>";
    }
    foreach ($this->pagesInRange as $page){
       if ($page != $this->current){
               echo  "<a href='".$this->url(array('page'=>$page))."'>" . $page . "</a>";
      }else{
          echo "<span>".$page . "</span>";
      }
   }
   if (isset($this->next)){
   		echo "<a href='".$this->url(array('page'=>$this->next))."'>&gt;</a>";
	   if (isset($this->last)){
	   		echo "<a href='".$this->url(array('page'=>$this->last))."'>&gt;&gt;</a>";
	   }
   }
   
  ?>
</div>